from travel.models import Destination
from django.contrib.syndication.feeds import Feed
from django.contrib.comments.feeds import LatestFreeCommentsFeed

class LatestEntries(Feed):
    title = "Where is Chmouel"
    link = "/travel/"
    description = "Follow the path of Chmouel in South America."

    def items(self):
        return Destination.objects.order_by('-arrival')[:5]

class MyLatestComments(LatestFreeCommentsFeed):
    title = "Where is Chmouel - Comments"
    description = "Follow the path of Chmouel in South America - Comments"
